<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="/static/vue.js"></script>
<script src="/static/axios-0.18.0.js"></script>
<script src="/static/jquery.min.js"></script>
<body>
    <div id="app">
        <table border="1px">
            <tr>
                <td>编号</td>
                <td>姓名</td>
                <td>性别</td>
                <td>密码</td>
                <td>年龄</td>
                <td>电话</td>
                <td>操作</td>
            </tr>
            <tr v-for="user in list">
                <td>{{user.id}}</td>
                <td>{{user.name}}</td>
                <td>{{user.sex}}</td>
                <td>{{user.password}}</td>
                <td>{{user.age}}</td>
                <td>{{user.tel}}</td>
            </tr>
        </table>
    </div>
<script>
    new Vue({
        el:"#app",
        data:{
            list:{}
        },
        created(){
            this.findAll();
        },
        methods:{
            findAll(){
                axios.get("http://localhost:8080/sys/user/findAll").then(res=>{
                    this.list=res.data
                })
            }
        }
    })
</script>
</body>
</html>